package cc.mrbird.card.service;

import cc.mrbird.card.domain.CardInfo;
import cc.mrbird.card.domain.RefundCard;
import cc.mrbird.card.domain.RefundCardVo;
import cc.mrbird.common.domain.QueryRequest;
import cc.mrbird.system.domain.User;

import java.util.List;

public interface CardInfoService {

    /**
     * 获取所有卡用户信息
     * @param cardInfo
     * @return
     */
    List<CardInfo> getAllList(CardInfo cardInfo, QueryRequest request);


    /**
     * 提交退卡信息
     * @param cardInfo 退卡信息
     * @return 交易时间
     */
    RefundCard commitRefundCardInfo(CardInfo cardInfo, User user,Double refundamt,Double deposit) throws Exception;


    /**
     * 获取退卡登记列表
     * @param refundCard
     * @param request
     * @return
     */
    List<RefundCardVo> getRefundCardList(RefundCard refundCard, QueryRequest request);
}
